import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;
public class Images {
	public static Image TG = Toolkit.getDefaultToolkit().getImage("Images/TGD.png");
	
	public static Image TB = Toolkit.getDefaultToolkit().getImage("Images/TYD.png");
	
	public static Image TY = Toolkit.getDefaultToolkit().getImage("Images/TwD.png");
	
	
	
	
	
	public static final Image BWall = Toolkit.getDefaultToolkit().getImage("images/Brickwall.png");
	public static final Image SWall = Toolkit.getDefaultToolkit().getImage("images/Steelwall.png");
	public static final Image Water = Toolkit.getDefaultToolkit().getImage("images/Water.png");
	public static final Image Grass = Toolkit.getDefaultToolkit().getImage("images/grass.png");
	public static final Image Hat   = Toolkit.getDefaultToolkit().getImage("images/Hat.png");
	public static final Image Boom  = Toolkit.getDefaultToolkit().getImage("images/boom.png");
	public static final Image Life  = Toolkit.getDefaultToolkit().getImage("images/life.png");
	
	
public static void loadImages(PlayScreen pscr){
		
		MediaTracker t = new MediaTracker(pscr);
	t.addImage(TG, 0);
	t.addImage(TB, 0);
	t.addImage(TY, 0);
	
	
	t.addImage(BWall, 0);
	t.addImage(SWall, 0);
	t.addImage(Grass, 0);
	t.addImage(Hat, 0);
	t.addImage(Boom, 0);
	t.addImage(Life, 0);
	
	
	try {
		t.waitForAll();
	} catch (InterruptedException e) { return; }
	

	}
}
